{template newheader}
<script src="{SITE_URL}public/js/dialog/jquery.artDialog.js?skin=blue" type="text/javascript"></script>
<script src="{SITE_URL}public/js/dialog/artDialog.iframeTools.js" type="text/javascript"></script>
<script type="text/javascript">
function bigimg(){
	$("#content").html("");
	$("#content").html("加载中......")
	$('#content').html('{$strTopic[contentd]}');
	$("#maximg").html("");
	$("#maximg").html('<a class="btn" href="javascript:;" onclick="smimg();return false;">小图</a>');
}
function smimg(){
	$("#content").html("");
	$("#content").html("加载中......")
	$('#content').html('{$strTopic[content310]}');
	$("#maximg").html("");
	$("#maximg").html('<a class="btn" href="javascript:;" onclick="bigimg();return false;">大图</a>');
}
</script>
<div id="wrapper">
<input type="hidden"  id="topicid" value="{$topicid}">
	<div class="u_t">
		<div class="u_info">
			<a href="{SITE_URL}{tsurl('user','space',array(userid=>$strTopic[user][userid]))}" class="u_p"><img class="ava" alt="{$strTopic[user][username]}" src="{$strTopic[user][face]}" /></a>
			<h2><a href="{SITE_URL}{tsurl('user','space',array(userid=>$strTopic[user][userid]))}">{$strTopic[user][username]}</a><em>分享于{php echo date('Y-m-d H:i',$strTopic[addtime])}</em></h2>
				<!-- <!--{if $strUser[isfollow]}-->
				<p class="add" style=""><span class="btn_added">已关注<a <a href="javascript:void('0');" onclick="user_nofollow('{$TS_USER[user][userid]}','{$strUser[userid]}');" id="followed">取消</a></span></p>
			<!--{else}-->
				<p class="add" id="unfollow" style=""><a class="btn_add"  href="javascript:void(0);" onclick="user_follow('{$TS_USER[user][userid]}','{$strUser[userid]}');">关注</a></p>
				<!--{/if}-->
				-->
		</div>
		<ul class="p_num">
			<li><a href="{SITE_URL}{tsurl('user','collect',array(userid=>$strTopic[userid]))}">{$strTopic[tacollects_num]}<span>收藏</span></a></li>
			<li><a href="{SITE_URL}{tsurl('user','collect',array(userid=>$strTopic[userid]))}">{$count_follow}<span>关注</span></a></li>
			<li class="last"><a href="{SITE_URL}{tsurl('user','followed',array(userid=>$strTopic[userid]))}">{$followedUsersum}<span>粉丝</span></a></li>
		</ul>
		<div class="clear"></div>
	</div>
	<div class="main">
		<div class="p_img" style="position:relative">
		<div style="position:absolute; right:10px; top:10px;" id="maximg"> <a class="btn" href="javascript:;" onclick="bigimg();return false;">大图</a></div>
			<div class="single_img" id="content">{$strTopic[content310]}</div>
			<div class="pro_info">
				<p class="tags">
					
					标签：
					<!--{loop $strTopic[tags] $key $item}-->
					<a href="{SITE_URL}{tsurl('talk','topic_tag',array(tagid=>$item[tagid]))}">{$item[tagname]}</a>
					<!--{/loop}-->
					
				</p>
				<p class="share"><span>分享给好友：</span><a class="sina" href="javascript:void(0);">新浪微博</a><a class="tqq" href="javascript:void(0);">腾讯微博</a><a class="douban" href="javascript:void(0);">豆瓣</a><a class="qzone" href="javascript:void(0);">QQ空间</a><a class="renren" href="javascript:void(0);">人人网</a></p>
			</div>
		</div>
		<!--{if intval($TS_USER[user][userid])==0}-->
<div style="border:solid 1px #DDDDDD; text-align:center;padding:20px 0"><a href="{SITE_URL}{tsurl('user','login')}">{$TS_HL[pub][1003]}</a> | <a href="{SITE_URL}{tsurl('user','register')}">{$TS_HL[pub][1004]}</a></div>
<!--{elseif $strTopic[iscomment] == 1 && $strTopic[userid] != $TS_USER[user][userid]}-->
{$TS_HL[app][1075]}
<!--{else}-->
			<div class="post_commet">
			<a id="comments" name="comments"></a>
			<div class="com_icon"><img class="ava" src="{$dangqianuser[user][face]}" alt="{$dangqianuser[user][username]}"></div>
			<div class="com_text">
				<textarea id="comment" placeholder="添加你的评论"></textarea>
				<p class="com_btn"><input class="btn" type="button" value="发表" name="Submit" id="submit" style="display: inline-block; "></p>
			</div>
		</div>
		<!--{/if}-->
<!--{if $TS_USER[user][userid] == "1"}-->
<div style="text-align:right;">
<!--{if $TS_USER[user][userid]==$strGroup[userid] ||$strGroupUser[isadmin]=="1" || $TS_USER[admin][isadmin]=="1"}-->
&gt;&nbsp; <a href="javascript:void(0);" onclick="topic_istop({$strTopic[topicid]},$strTopic[istop]);" id="topNotop"><!--{if $strTopic[istop]=='0'}-->{$TS_HL[app][1061]}<!--{else}-->{$TS_HL[app][1062]}<!--{/if}--></a> 

&gt;&nbsp; <a href="{SITE_URL}index.php?app=talk&ac=do&ts=isposts&topicid={$strTopic[topicid]}"><!--{if $strTopic[isposts]==0}-->精华<!--{else}-->取消精华<!--{/if}--></a>

&gt;&nbsp; <a href="javascript:void(0);" onclick="topic_isshow({$strTopic[topicid]},$strTopic[isshow]);" id="hideShow"><!--{if $strTopic[isshow]=='0'}-->{$TS_HL[app][1063]}<!--{else}-->{$TS_HL[app][1064]}<!--{/if}--></a>
&gt;&nbsp; <a href="{SITE_URL}index.php?app=talk&ac=topic_move&talkid={$strGroup[talkid]}&topicid={$strTopic[topicid]}">{$TS_HL[app][1065]}</a>

<!--{/if}-->
&gt;&nbsp; <a href="{SITE_URL}index.php?app=talk&ac=topic_edit&topicid={$strTopic[topicid]}">{$TS_HL[app][1066]}{$strShape[shapename]}</a> &gt;&nbsp; <a href="javascript:void(0);" onclick="topic_del('{$strTopic[talkid]}','{$strTopic[topicid]}');">{$TS_HL[app][1067]}</a>
</div>
<!--{/if}-->
		<h2 id="commentnum" class="com_num">共{$talkContentCommentNum}条评论</h2>
		
		
		<ul class="com_list">
		
				<!--{if is_array($arrTopicComment)}-->
<!--{loop $arrTopicComment $key $item}-->
	<li>
		<div class="com_icon"><a href="{SITE_URL}{tsurl('user','space',array(userid=>$item[user][userid]))}"><img src="{$item[user][face]}" alt="$item[user][username]}"></a></div>
<div class="com_con">
					<p><span class="fr date">{php echo date('Y-m-d H:i:s',$item[addtime])}</span><a href="{SITE_URL}{tsurl('user','space',array(userid=>$item[user][userid]))}">{$item[user][username]}</a></p>
					<p class="com_d">{$item[content]}</p>
					
						<!--{if $TS_USER[user][userid] == $strGroup[userid] || $TS_USER[user][userid] == $item[userid] || $strGroupUser[isadmin]==1 || $TS_USER[user][isadmin]==1}-->
						<p class="com_del"><a href="javascript:void('0');" onclick="comment_del('{$item[topicid]}','{$item[commentid]}');" rel="nofollow">删除</a></p>
<!--{/if}-->	
				</div>
			</li>
				<!--{/loop}-->
<!--{/if}-->
		</ul>

<div class="page">{$pageUrl}</div>
	</div>
	<div class="sidebar">
		<div class="white like">
			<ul class="p_act">
				
				<!--{if $TS_USER[user] == ''}-->
				<li class="fave_box" id="fave"><a class="fave" href="{SITE_URL}{tsurl('user','login')}">收藏</a><span id="favecontent">{$strTopic[collects_num]}</span></li>
				<!--{else}-->
					<!--{if $iscollect}-->
					<li class="fave_box" style="display: list-item; "><a class="marked" href="javascript:void('0');">已收藏</a><span id="markedcontent">{$strTopic[collects_num]}</span></li>
					<!--{else}-->
					<li class="fave_box" id="fave"><a class="fave" href="javascript:void('0');" onclick="topic_collect('{$topicid}');">收藏</a><span id="favecontent">{$strTopic[collects_num]}</span></li>
					<li class="fave_box" id="marked"><a class="marked" href="javascript:void('0');">已收藏</a><span id="markedcontent">{$strTopic[collects_num]}</span></li>
										<!--{/if}-->
				<!--{/if}-->
				<li>
					
						<a class="buy" href="{SITE_URL}go/url/goid-{$topicid}" title="查看购买信息" target="_blank">taobao.com</a><em>(可购买)</em>
					
					
				</li>
				<li><a class="album" href="#">加入专辑</a></li>
				
			</ul>
			
			<div class="p_n">
				<!--{if $bftopicid}-->
					<a class="pre" href="{SITE_URL}{tsurl('talk','topic',array(topicid=>$bftopicid))}" title="方向键也可以翻页哦">上一个</a>
				<!--{/if}-->
				<!--{if $nexttopicid}-->
					<a class="next" href="{SITE_URL}{tsurl('talk','topic',array(topicid=>$nexttopicid))}" title="方向键也可以翻页哦">下一个</a>
				<!--{/if}-->
			</div>
		</div>
		<div class="white">
			<h2>你也许喜欢</h2>
			<ul class="rel_list">
			<!--{if $arrTopicstag}-->
<!--{loop $arrTopicstag $key $item}-->
				<li><a href="{SITE_URL}{tsurl('talk','topic',array(topicid=>$item[topicid]))}" title="{$item[title]}"><img src="{SITE_URL}{$item[thumb]}" alt="{$item[title]}" /></a></li>
				<!--{/loop}-->
<!--{/if}-->
			
			</ul>
		</div>
		<div class="white ad_side">
			<a href="javascript:open_url('http://s.click.taobao.com/t_8?e=7HZ6jHSTbIKrNhvqMzAkV1v1SVFLglYSq800jPKfLbAO9g%3D%3D&p=mm_14370356_0_0');" title="2011新款棉靴"><img src="{SITE_URL}images/imgad.gif" border="0" width="200" height="200"></a>
		</div>
		<div class="white">
			<h2>谁收藏了</h2>
			<ul class="peo_list">
			<script>topic_collect_user('{$strTopic[topicid]}')</script>
			<div id="collects"></div>
			</ul>
		</div>
		<p class="report"><a href="javascript:void(0);">举报该分享</a></p>
	</div>
	<div class="clear"></div>
</div>
 <script src="{SITE_URL}public/js/editor/xheditor/xheditor.js" type="text/javascript"></script>
<script src="{SITE_URL}public/js/editor/xheditor/loadeditor.js" type="text/javascript"></script>
{template footer}